package com.vm.osm.business.service.impl;

import com.vm.osm.business.dao.KnowledgeTypeMapper;
import com.vm.osm.business.dto.rsp.knowledgeType.RspQueryAllType;
import com.vm.osm.business.entity.KnowledgeType;
import com.vm.osm.business.service.IKnowledgeTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * Created by chenzui on 2018/1/23.
 */
@Service
public class KnowledgeTypeServiceImpl implements IKnowledgeTypeService {

    @Autowired
    private KnowledgeTypeMapper knowledgeTypeMapper;

    @Override
    public int deleteByPrimaryKey(String id) {
        return 0;
    }

    @Override
    public int insert(KnowledgeType record) {
        return knowledgeTypeMapper.insert(record);
    }

    @Override
    public int insertSelective(KnowledgeType record) {
        return knowledgeTypeMapper.insertSelective(record);
    }

    @Override
    public KnowledgeType selectByPrimaryKey(String id) {
        return null;
    }

    @Override
    public int updateByPrimaryKeySelective(KnowledgeType record) {
        return 0;
    }

    @Override
    public int updateByPrimaryKey(KnowledgeType record) {
        return 0;
    }

    @Override
    public List<RspQueryAllType> findAll() {
        return knowledgeTypeMapper.findAll();
    }

    @Override
    public int updateTypeInfo(KnowledgeType record) {
        return knowledgeTypeMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int deleteTypeInfo(String id) {
        return knowledgeTypeMapper.deleteByPrimaryKey(id);
    }
}
